package com.luyuan.gallery.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import com.luyuan.common.annotation.Excel;
import com.luyuan.common.core.domain.BaseEntity;

public class ExhiComment extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 评论目标id */
    @Excel(name = "评论目标id")
    private String targetId;

    /** 评论人id */
    @Excel(name = "评论人id")
    private Long userId;

    /** 根评论id */
    @Excel(name = "根评论id")
    private Long rootId;

    /** 所属评论id，主评论为null */
    @Excel(name = "所属评论id，主评论为null")
    private Long parentId;

    /** 评论内容 */
    @Excel(name = "评论内容")
    private String content;

    /** 状态，0-未审核，1-展现，2-审核驳回，3-已删除 */
    @Excel(name = "状态，0-未审核，1-展现，2-审核驳回，3-已删除")
    private Integer status;

    /** 备注 */
    @Excel(name = "备注")
    private String remark;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setTargetId(String targetId) {
        this.targetId = targetId;
    }

    public String getTargetId() {
        return targetId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setRootId(Long rootId) {
        this.rootId = rootId;
    }

    public Long getRootId() {
        return rootId;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    public Long getParentId() {
        return parentId;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getContent() {
        return content;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getStatus() {
        return status;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getRemark() {
        return remark;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("targetId", getTargetId())
                .append("userId", getUserId())
                .append("rootId", getRootId())
                .append("parentId", getParentId())
                .append("content", getContent())
                .append("status", getStatus())
                .append("remark", getRemark())
                .append("createTime", getCreateTime())
                .append("updateTime", getUpdateTime())
                .toString();
    }
}